package com.example.weitechao.designpatten.zhuangtai;

public class TestTra {
	   public static void main(String[] args)  
	    {  
	        VendingMachine machine = new VendingMachine(10);  
	        machine.insertMoney();  
	        machine.backMoney();  
	  
	        System.out.println("-----------");  
	  
	        machine.insertMoney();  
	        machine.turnCrank();  
	          
	        System.out.println("----------压力测试-----");  
	        machine.insertMoney();  
	        machine.insertMoney();  
	        machine.turnCrank();  
	        machine.turnCrank();  
	        machine.backMoney();  
	        machine.turnCrank();  
	  
	    } 

}
